package com.yq.mapper;

import com.yq.model.po.Admin;
import com.yq.model.vo.AdminInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    int queryCountByUsernameAndPassword(@Param("admin") Admin admin);

    List<AdminInfoVO> queryAllAdminInfo();

    int addAdmin(@Param("admin") Admin admin);

    AdminInfoVO queryById(@Param("id") int id);

    int updateAdminInfo(@Param("admin") Admin admin);

    int deleteAdminById(@Param("id") int id);

    List<AdminInfoVO> getSearchAdminsByUsernameOrNickname(@Param("admin") Admin admin);
}
